package com.ruoyix.im.domain.bo;

import com.ruoyix.common.core.domain.BaseEntity;
import com.ruoyix.common.core.validate.AddGroup;
import com.ruoyix.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

/**
 * 聊天群业务对象 im_chat_group
 *
 * @author ruoyi
 * @date 2024-05-27
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ImChatGroupBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 群名称
     */
    @NotBlank(message = "群名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String groupName;

    /**
     * 群主用户ID
     */
    @NotNull(message = "群主用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long masterUserId;

    /**
     * 群头像
     */
    @NotBlank(message = "群头像不能为空", groups = { AddGroup.class, EditGroup.class })
    private String avatar;

    /**
     * 简介
     */
    @NotBlank(message = "简介不能为空", groups = { AddGroup.class, EditGroup.class })
    private String introduction;

    /**
     * 公告
     */
    @NotBlank(message = "公告不能为空", groups = { AddGroup.class, EditGroup.class })
    private String notice;

    /**
     * 进入方式[0:无需验证，1:需要群主或管理员同意]
     */
    @NotNull(message = "进入方式[0:无需验证，1:需要群主或管理员同意]不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer inType;

    /**
     * 类型[1:聊天群，2:话题]
     */
    @NotNull(message = "类型[1:聊天群，2:话题]不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long groupType;



}
